package finalexperiment.cn.edu.scau.cmi.huxiantao.client;

import javafx.application.Application;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import cn.edu.scau.cmi.huxiantao.client.*;
import comprehension.cn.edu.scau.cmi.huxiantao.client.ComprehensionJavaFxClient;

public class FinalClient extends Application {
	
	@Override
	public void start(Stage primaryStage) throws Exception {
		Parent root=FXMLLoader.load(getClass().getResource("/finalexperiment/maingui.fxml"));
		Scene scene=new Scene(root);
		primaryStage.setScene(scene);
		primaryStage.setTitle("实验11 综合性实验");
		primaryStage.show();
	}

	public static void main(String[] args) {
		launch();
	}

	
	@FXML
	private void showSingletonClient() throws Exception {
		new SingletonClient().start(new Stage());
	}
	@FXML
	private void showMultipletonClient() throws Exception {
		new MultipletonClient().start(new Stage());
	}
	@FXML
	private void showSimpleFactoryClient() throws Exception {
		new SimpleFactoryClient().start(new Stage());
	}
	@FXML
	private void showFactoryClient() throws Exception {
		new FactoryClient().start(new Stage());
	}
	@FXML
	private void showAbstractFactoryClient() throws Exception {
		new AbstractFactoryClient().start(new Stage());
	}
	@FXML
	private void showAdapterClient() throws Exception {
		new AdapterClient().start(new Stage());
	}
	@FXML
	private void showCompositeClient() throws Exception {
		new CompositeClient().start(new Stage());
	}
	@FXML
	private void showComprehensionJavaFxClient() throws Exception {
		new ComprehensionJavaFxClient().start(new Stage());
	}
}
